package com.woniuxy.microcontentserver.advertisemsg.service;

import com.woniuxy.microcontentserver.bean.AdvertiseBean;

import java.util.List;

public interface IAdvertiseService {

    /**
     * 查询所有广告
     * @param advertiseBean
     * @return
     */
    List<AdvertiseBean> findAll(AdvertiseBean advertiseBean);

    /**
     * 根据id查询栏目
     * @param id
     * @return
     */
    AdvertiseBean getOneById(Long id);

    /**
     * 根据多条件查询
     * @param advertiseBean
     * @return
     */
    List<AdvertiseBean> findByCondition(AdvertiseBean advertiseBean);

    /**
     * 新增广告
     * @param advertiseBean
     * @return
     */
    int addAdvertiseBean(AdvertiseBean advertiseBean);

    /**
     * 修改广告
     * @param advertiseBean
     * @return
     */
    int updateAdvertiseBean(AdvertiseBean advertiseBean);

    /**
     * 删除栏目
     * @param id
     * @return
     */
    int deleteAdvertiseBean(Long id);
}
